#define _CRT_SECURE_NO_WARNINGS
#include "BinaryTree.h"


void test1()
{
	char* arr = "ABD##E#H##CF##G##";
	int i = 0;
	BTNode* root = BinaryTreeCreate(arr, &i);
	PreOrder(root);
	int sz = BinaryTreeSize(root);
	printf("%d\n", sz);
	sz = BinaryTreeLeafSize(root);
	printf("%d\n", sz);
	sz = BinaryTreeLevelKSize(root, 3);
	printf("%d\n", sz);

	BTNode* Node = BinaryTreeFind(root, 'M');
	printf("%p\n", Node);

	BinaryTreeLevelOrder(root);

	printf("%d\n", BinaryTreeComplete(root));

	BinaryTreeDestory(root);


}

int main()
{
	test1();
	return 0;
}

